const Sequelize = require('sequelize')
const seq = require('../seq')

const Questionnaire = seq.define('questionnaire', {
  typeid: {
    type: Sequelize.STRING,
    allowNull: false
  },
  groupid: {
    type: Sequelize.STRING,
    allowNull: false
  },
  unitid: {
    type: Sequelize.STRING,
    allowNull: false
  },
  answerscontent: {
    type: Sequelize.STRING,
    allowNull: false
  },
  questuser: {
    type: Sequelize.STRING,
    allowNull: false
  }
})

module.exports = Questionnaire
